<?xml version="1.0" encoding="UTF-8" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:p="http://java.sun.com/jsf/portlet/components" version="2.0">
	<f:view>
		<p:portletPage>
			<a4j:outputPanel layout="block" styleClass="mediadoresWrapper">
				<a4j:outputPanel layout="block" styleClass="headerWrapper">
					<a4j:outputPanel layout="block" styleClass="accesible clearfix"></a4j:outputPanel>
				</a4j:outputPanel>
				<a4j:outputPanel layout="block" styleClass="topMenuWrapper">
					<h:form>
						<a4j:outputPanel>
							<a4j:commandLink value="Volver" action="back" immediate="true" styleClass="topMenuLink" />
						</a4j:outputPanel>
					</h:form>
				</a4j:outputPanel>
				<a4j:outputPanel layout="block" styleClass="contentWrapper">
					<h:form id="marketingPromotionDetailForm">
						<a4j:outputPanel layout="block" styleClass="titleWrapper">
							<h:outputText value="Detalle de promoción comercial" />
						</a4j:outputPanel>
						<a4j:outputPanel layout="block" styleClass="validatonMessagesWrapper">
							<rich:messages />
						</a4j:outputPanel>
						<a4j:outputPanel layout="block" rendered="#{ApplicationConfiguration.debugEnabled}">
							<rich:panel>
								<h:outputText value="#{MarketingPromotionDetailManagement.currentMarketingPromotion}" />
							</rich:panel>
							<rich:spacer height="10" />
						</a4j:outputPanel>
						<rich:panel>
							<dl class="formList">
								<dt>Nombre:</dt>
								<dd><h:inputText id="Nombre" value="#{MarketingPromotionDetailManagement.currentMarketingPromotion.name}" styleClass="largeTextField" /></dd>
								<dt>Porcentaje de descuento:</dt>
								<dd><h:inputText id="Porcentaje" value="#{MarketingPromotionDetailManagement.currentMarketingPromotion.percentage}" required="true" converterMessage="El porcentaje de descuento contiene un valor no numérico." requiredMessage="El porcentaje de descuento es obligatorio." validatorMessage="El porcentaje de descuento no es válido" styleClass="smallTextField rightAlignText">
									<f:validateDoubleRange minimum="0" maximum="100" />
								</h:inputText></dd>
								<dt>Inicio de vigencia:</dt>
								<dd><rich:calendar timeZone="#{ApplicationConfiguration.serverTimeZone}" value="#{MarketingPromotionDetailManagement.currentMarketingPromotion.fromDate}" mode="client" popup="true" datePattern="dd-MM-yyyy" enableManualInput="false" showApplyButton="false" locale="es_ES" /></dd>
								<dt>Fin de vigencia:</dt>
								<dd><rich:calendar timeZone="#{ApplicationConfiguration.serverTimeZone}" value="#{MarketingPromotionDetailManagement.currentMarketingPromotion.toDate}" mode="client" popup="true" datePattern="dd-MM-yyyy" enableManualInput="false" showApplyButton="false" locale="es_ES" /></dd>
							</dl>
							<a4j:outputPanel layout="block" styleClass="richPanelButtons">
								<a4j:commandButton action="#{MarketingPromotionDetailManagement.save}" value="Guardar" styleClass="richButton" />
							</a4j:outputPanel>
							<a4j:outputPanel layout="block" styleClass="accesible clearfix"></a4j:outputPanel>
						</rich:panel>
					</h:form>
				</a4j:outputPanel>
				<a4j:outputPanel layout="block" styleClass="footerWrapper">
					<a4j:outputPanel layout="block" styleClass="accesible clearfix"></a4j:outputPanel>
				</a4j:outputPanel>
			</a4j:outputPanel>
		</p:portletPage>
	</f:view>
</jsp:root>